import VueRouter from 'vue-router';
import app from './app.vue'
import home from './components/index/home.vue'
import search from './components/index/search.vue'
import email from './components/index/email.vue'
import user from './components/index/user.vue'
import account from './components/user_module/account.vue'
import newsinfo from "./components/email_module/newsinfo.vue";


let router = new VueRouter({
    routes:[
        {path:"/",redirect:"/app"},
        {path:"/home",component:home,},
        {path:"/app",component:app},
        {path:"/search",component:search},
        {path:"/email",component:email},
        {path:"/user",component:user},
        {path:"/user/account",component:account},
        {path:"/email/newsinfo/:i",component:newsinfo}
    ]
});

export  default router;